* DOS DIRECTORY SHELL
<CtrlF4> or @ME.HLP^MAINMENU[MENU], @ME.HLP^FL[File], Dos directory shell

The Multi-Edit DOS Directory Shell is a full fledged integrated file/disk
manager.  It allows you to display up to four directories at a time, in
either full directory display mode or condensed display mode.  You can mark
files for copying, deleting, printing or loading into Multi-Edit.  A simple
point and shoot strategy lets you navigate through your directory trees.
Any DOS command or program may be run with the touch of a key.  You can even
examine the contents an archived file.

There is actually two different Directory Shell modes:

	MODE 1:  The full blown	mode, which is what you get when you invoke
	it from the Other menu or the default key assignment.

	MODE 2: The File Prompt mode, which is the subset Directory Shell
	that is invoked from a @ME.HLP^FL[File] prompt with the <F2> key.  In this mode,
	the Directory Shell appears as a sub-menu of the prompt.  Only
	a single directory window is allowed, and multiple-file loading
	is disabled.

 ┌CD=C:\ME─────────────────────────────────────╖
 ├C:\*.*───────────────────────────────────────╢  Here's an example of two
 │ ARC\           DOCS\          DOS\          ║  directories displayed on
 │ ME\            ME2\           ME3\          ║  the screen.  Notice that
 │ MSX\           MV\            NG\           ║  the top one is displayed
 │ TLIB\          TTAX89\        TURBOC\       ║  in the "condensed" mode,
 │ TX\            UTIL\          LOCAL.SPL\    ║  and the bottom one
 │ TONEY.SPL\     NOTES.BAK      AUTOEXEC.BAT  ║  displays a full directory
 │ DV.BAT         MG.BAT         PDIR.BAT      ║  list, complete with
 ╘═C:8736k-41 File(s)══════════════════════════╝  attributes.
 ┌^BCD=C:\ME^b─────────────────────────────────────╖
 ├^B\ARC\*.*^b─────────────────────────────────────╢  Some of the files in the
 │ ..             <DIR>    12-01-88  6:04p     ║  bottom directory are
 │ VPM      ARC     30427  10-10-88  4:47p A   ║  "marked" (the ""
 │^RHEAP     ARC     36253  10-10-88  4:48p A   ^R║  character).
 │^BXHELP    ARC    274785  11-02-88  1:03p AR  ^b║
 │ TEST     ARC     23473  12-02-88  0:25a     ║  The bottom directory is
 │^BMODULE   ARC    234875  01-22-89 10:30a     ^b║  active (notice the bold
 │ MV       ARC    550503  12-01-88  0:50a     ║  type and the highlight bar).
 ╘═C:8736k-7 File(s)═══════════════════════════╝


    ┌─────────────DIRECTORY SHELL OPERATIONS────────────────────┐
    │ @DOMARK[Mark/Unmark file              <SPACEBAR>                 ] │
    │ @DOSELECT[Select File/Directory/Program <ENTER>                    ] │
    │ @DOHELP[Help                          <F1>                       ] │
    │ @DOCD[Change Directory              <F2>                       ] │
    │ @DODELFILE[Delete File                   <F3>                       ] │
    │ @DOCOPYFILE[Copy File                     <F4>                       ] │
    │ @DORENAME[Rename File                   <F5>                       ] │
    │ @DOGETDIR[Examine Directory             <F6>                       ] │
    │ @DORUNDOS[Goto DOS Prompt               <F7>                       ] │
    │ @DOPRINT[Print a file                  <F8>                       ] │
    │ @DOLOADFILE[Load a file                   <F9>                       ] │
    │ @DOSORT[Sort directory                <F10>                      ] │
    │ @DONEXTWINDOW[Next directory window         <ShftF1>                   ] │
    │ @DOSIZEWINDOW[Re-size directory window      <ShftF2> or <ScrollLockOn> ] │
    │ @DODELMARKED[Delete marked Files           <ShftF3>                   ] │
    │ @DOCOPYMARKED[Copy marked Files             <ShftF4>                   ] │
    │ @DOPRINTMARKED[Print marked Files            <ShftF8>                   ] │
    │ @DOLOADMARKED[Load marked Files             <ShftF9>                   ] │
    │ @DOCREATEWINDOW[Create directory window       <AltF1>                    ] │
    │ @DOKILLWINDOW[Kill directory window         <AltF2>                    ] │
    └───────────────────────────────────────────────────────────┘

DOMARK DIRECTORY SHELL - MARK/UNMARK FILE
<SPACEBAR>

Marks or Unmarks a file in the directory.  The marked file will be indicated
by a '' character.

DOSELECT SELECT FILE/DIRECTORY/PROGRAM
Default key: ^B<ENTER>^b

This function depends on the type of file the highlight bar is sitting
on.

DIRECTORY
	If the highlight bar is on a directory, then the directory window
	will display the contents of that directory.  This only changes
	the directory that is displayed, NOT the currently active directory.
	To display the parent directory of the displayed directory, select
	the ".." entry.

.EXE, .COM or .BAT
	Assumes that this is a program or batch file and attempts to
	execute it.

.ARC or .ZIP
	Assumes that this is an archived file and attempts to display the
	contents of the archive file.  Requires a compatible archiving
	program like SEA ARC, or PKWARE PKARC or PKZIP.
	See @DOARC[EXAMINE ARCHIVE FILE]

DOHELP DIR SHELL DIRECTORY SHELL - HELP
Default key: ^B<F1>^b

Brings up the complete help on the Directory Shell.

DOCD DIRECTORY SHELL - CHANGE DIRECTORY
Default key: ^B<F2>^b

Changes the current working (default) directory.

See also @DOGETDIR[EXAMINE DIRECTORY]
DODELFILE DIRECTORY SHELL - DELETE FILE
Default key: ^B<F3>^b

Deletes the file highlighted in the directory display

DOCOPYFILE DIRECTORY SHELL - COPY FILE
Default key: ^B<F4>^b

Copies the file highlighted in the directory display (or a filename may be
typed in) to a destination that will be prompted for.

DORENAME DIRECTORY SHELL - RENAME FILE
Default key: ^B<F5>^b

Renames the highlighted file.  A new filename will be prompted for.

DOGETDIR DIRECTORY SHELL - EXAMINE DIRECTORY
Default key: ^B<F6>^b

Prompts for a path, then displays a directory listing.  Works just like
DOS's DIR command.  NOTE:  This does not change the current directory.

See also @DOCD[CHANGE DIRECTORY]

DORUNDOS DIRECTORY SHELL - GOTO DOS PROMPT
Default key: ^B<F7>^b

Shells out of Multi-Edit to the DOS prompt.

See @ME.HLP^RD[RUNNING DOS FROM MULTI-EDIT]

DOPRINT DIRECTORY SHELL - PRINT A FILE
Default key: ^B<F8>^b

This function will allow printing of a file using the DOS background print
spooler, PRINT.COM.  After specifying the file to be printed, the DOS shell,
or even Multi-Edit may be exited without disturbing the PRINT operation.

PLEASE NOTE THE FOLLOWING:
	A.  PRINT.COM program must either be in the current subdirectory or
		there must be a path to where the program resides.
	B.  PRINT.COM will NOT accept a path as part of the filename to print
		for DOS versions prior to DOS 3.0.
	C.  PRINT.COM should already be resident for optimal use of memory.


See also @DOPRINTMARKED[PRINT MARKED FILES]

DOLOADFILE DIRECTORY SHELL - LOAD A FILE
Default key: ^B<F9>^b

Creates a new window and loads the selected file into the editor.  If the
DOS shell is being used from a prompt (see @ME.HLP^FL[Loading and Saving files]) this
key selects the file.

@DOLOADMARKED[LOAD MARKED FILES]
DOSORT DIRECTORY SHELL - SORT DIRECTORY
Default key: ^B<F10>^b

Brings up a prompt to enter the desired sort keys.

		┌───Input Sort Key───╖
		│Extension   ^REN      ^R║▒▒
		│Name                ║▒▒
		│Size                ║▒▒
		│Date                ║▒▒
		│Time                ║▒▒
		│-reverse            ║▒▒
		╘════════════════════╝▒▒
  		  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒

Enter the letters of the desired sort keys.  Multiple sort keys are just fine.

For example:

	To sort by Extension and then Name use "EN".
	To sort by Size and the Date use "SD"
	To reverse the order of any sort, add "-" to the sort key.

DONEXTWINDOW DIRECTORY SHELL - NEXT DIRECTORY WINDOW
Default key: ^B<ShftF1>^b

Switches to the next directory window (if more than one exist).

See CREATE DIRECTORY WINDOW

DOCREATEWINDOW DIRECTORY SHELL - CREATE DIRECTORY WINDOW
Default key: ^B<AltF1>^b

Creates a new directory window.  Up to four may exist on the screen at a
time.  Each directory window is independant, and may display a different
directory.

See @DONEXTWINDOW[NEXT DIRECTORY WINDOW], @DOKILLWINDOW[KILL DIRECTORY WINDOW] and
@DOSIZEWINDOW[RE-SIZE DIRECTORY WINDOW]

DOSIZEWINDOW DIRECTORY SHELL - RE-SIZE DIRECTORY WINDOW
Default key: ^B<ShftF2>^b or ^B<ScrollLockOn>^b

Resizes the current directory window.  Directory windows may overlap without
confict.

See @DONEXTWINDOW[NEXT DIRECTORY WINDOW], @DOKILLWINDOW[KILL DIRECTORY WINDOW] and
@DOSIZECREATE[CREATE DIRECTORY WINDOW]

DOKILLWINDOW DIRECTORY SHELL - KILL DIRECTORY WINDOW
Default key: ^B<AltF2>^b

Deletes the current directory window from the screen.  If only one
directory is being displayed, then it may not be deleted.  No actual
data is destroyed by this operation.

See @DONEXTWINDOW[NEXT DIRECTORY WINDOW], @DOSIZEWINDOW[RE-SIZE DIRECTORY WINDOW] and 
@DOSIZECREATE[CREATE DIRECTORY WINDOW]



DODELMARKED DIRECTORY SHELL - DELETE MARKED FILES
Default key: ^B<ShftF3>^b

Deletes all files currently marked.  Prompts for verification first.

DOCOPYMARKED DIRECTORY SHELL - COPY MARKED FILES
Default key: ^B<ShftF4>^b

Copies all files marked to the prompted destination.

DOPRINTMARKED DIRECTORY SHELL - PRINT MARKED FILES
Default key: ^B<ShftF8>^b

Prints all files currently marked.  Use DOS PRINT.COM.

Please see @DOPRINT[DIRECTORY SHELL - PRINT A FILE] for details and
cautions.

DOLOADMARKED DIRECTORY SHELL - LOAD MARKED FILES
Default key: ^B<ShftF9>^b

Creates windows for and Loads all files currently marked.  Not available
if the DIRECTORY SHELL was invoked from a prompt.

See @ME.HLP^FL[LOADING AND SAVING FILES]

DOARC DIRECTORY SHELL - EXAMINE ARCHIVE FILE
The archive examination function may be setup to work with
a variety of archive and file compression programs.

The defaults are PKPAK for .ARC files and PKZIP for .ZIP files.
You may set up your own, by modifying the STARTUP.SRC file.

See @MACRO.HLP^*[MACRO LANGUAGE REFERENCE GUIDE] for details on STARTUP.SRC and
the macro language in general.

GLOBAL VARIABLES:
	'ARCDIR_COMMAND'  is the parameters for running the
		archive program to generate the list for .ARC files.
	'ZIPDIR_COMMAND'  is the parameters for running the
		archive program to generate the list for .ZIP files.
		/D1=nn  The number of lines at the top of the list to
			delete.  This is to get rid of the startup message and
			other junk.
		/D2=nn  The number of lines at the bottom of the list to
			delete.  This gets rid of any junk at the bottom.
		/S1=nn  The number of lines at the top of the list to
			leave in but skip.  This is done after the deleting.
		/S2=nn  The number of lines at the bottom of the list to
			leave in but skip.  This is done after the deleting.
		/C=str  The command to user to run the program.  Must be
			the last parameter.
Example:
	Set_Global_Str('ARCDIR_COMMAND',
			'/D1=6/D2=0/S1=2/S2=2/C=C:\UTIL\PKPAK -V' );